package com.cimu.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.cimu.provider.service.MockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Title: MockServiceImpl
 * Copyright: Copyright (c) 2017
 *
 * date 2018年12月06日 17:18
 */
@Service(interfaceClass = MockService.class, registry = {"test"})
@Component
@Slf4j
public class MockServiceImpl implements MockService{
    @Override
    public Object mockData() {
        try {
            Thread.sleep(1000*100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        log.info("========mock=============");
        throw new RuntimeException();
    }
}
